//
//  HEAudioReadingPlayer.h
//  HealthFamily
//
//  Created by 吴欧 on 2021/2/24.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HEReadSliderView.h"
#import "HEAudioReadModel.h"
#import "HEAudioReadConfig.h"

NS_ASSUME_NONNULL_BEGIN

@class HEAudioReadingPlayer;
@protocol HEAudioReadingPlayerDelegate <NSObject>

@optional
//播放失败的代理方法
- (void)playerViewFailed:(HEAudioReadingPlayer *)player;

//缓存中的代理方法
- (void)playerViewBuffering:(HEAudioReadingPlayer *)player;

//播放完毕的代理方法
- (void)playerViewFinished:(HEAudioReadingPlayer *)player;

@end

@interface HEAudioReadingPlayer : UIView

- (void)player:(HEAudioReadModel *)model;

- (void)pause;

- (void)changeMusic:(HEAudioReadModel *)musicModel;

@end

NS_ASSUME_NONNULL_END
